package com.jz.banner.screen.bean.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;


import com.jz.banner.screen.utils.CommUtils;

import org.greenrobot.greendao.database.Database;

public class MySqlLiteOpenHelper extends DaoMaster.OpenHelper {
    public MySqlLiteOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory);
    }

    @Override
    public void onUpgrade(Database db, int oldVersion, int newVersion) {
        CommUtils.Companion.println("noel", "oldVersion:" + oldVersion + ",newVersion" + newVersion);
        //MigrationHelper.getInstance().migrate(db, HandOrderBeanDao.class);
        MigrationHelper.getInstance().migrate(db, DBBannerStatisticalDao.class);
    }

}
